get('#imgx').addEventListener('click',function(){
    imgX()/* 点击锁显示密码调用---ok */
})
get('.name').addEventListener('click', function () {
    nameWord1()/* 用户名登陆封装调用---ok */
    
  })
  
  get('.btnT').addEventListener('click', function () {
    twoDimensional1()/* 二维码登录封装调用---ok*/
  })
  
  get('#btnxx').addEventListener('click',function(){
    inputLog()/* 正则验证封装调用 ---ok*/
    location.href='../home/home.html'
  })
  function nameWord1(){
    get('.name').style.color='chartreuse';
    get('.Two-dimensional').style.display = "none";
    get('.name-word').style.display = "block";
    get('.btnT').style.color=''
 }



 function twoDimensional1(){
    get('.name').style.color='black';
    get('.Two-dimensional').style.display = "block";
    get('.name-word').style.display = "none";
    get('.btnT').style.color='chartreuse';
    
 }
